package com.sentinel.demo.client.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dsy on 2019/12/16
 */
@RestController
public class ClientDemoController {

//    @SentinelResource(value = KEY,blockHandler = "blockHandle" ,fallback = "fallBack")
    @ApiOperation(value = "基本测试1")
    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String test(){
        return "";
    }
}
